package com.nut.spp.service.impl;

import com.nut.spp.common.Result;
import com.nut.spp.entity.AdapayBankCode;
import com.nut.spp.mapper.AdapayBankCodeMapper;
import com.nut.spp.service.AdapayBankCodeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class AdapayBankCodeServiceImpl implements AdapayBankCodeService {

    @Autowired
    private AdapayBankCodeMapper adapayBankCodeMapper;

    @Override
    public Result<List<AdapayBankCode>> list(String name) {
        List<AdapayBankCode> list = adapayBankCodeMapper.selectByName(name);
        return Result.ok(list);
    }

}